#include<Windows.h>
#include<iostream>
#include<opencv\cv.h>
#include<opencv\highgui.h>

using namespace std;

int undermain()
{
	cv::Mat image(cvLoadImage("D:\\Synchronised\\Dropbox\\All\\Z.bmp@1020304050607080.bmp"));
	
	CvMemStorage* storage=cvCreateMemStorage(0);
	CvSeq* firstContour=NULL;
	cv::Mat* binaryImage=new cv::Mat(image);
	//IplImage* edgeImage=cvCreateImage(cvGetSize(image),IPL_DEPTH_8U,1);
	cv::cvtColor(image,*binaryImage,CV_BGR2GRAY);
	//cvCvtColor(image,edgeImage,CV_BGR2GRAY);
	cv::Mat* edgeImage=new cv::Mat(image);

	cv::Canny(*binaryImage,*edgeImage,230,255);
	cv::imshow("My Window",*edgeImage);
	cv::waitKey();
	return 0;
}